/**
 * Created by lenovo on 2017/2/26.
 */
(function (angular) {
    angular.module('learn',['ngRoute']).controller('learnController',['$scope','$location',function ($scope,$location) {
        //html5 css3 javascript js面向对象 angular 更多>>
        $scope.navs = navs;
        $scope.css3 = [''];
        $scope.location = $location;
        $scope.$watch('location.url()',function (n) {
            switch (n){
                case '/html5':
                    
                case '/css3':
                case '/javascript':
                case '/ocjs':
                case '/angular':
            }
        })
    }]).config(['$routeProvider',function ($rp) {
        $rp.when('/html5',{
            
        });
    }]);
    var navs = [
        {M:'html5',I:'html5'},
        {M:'css3',I:'css3'},
        {M:'javascript',I:'javascript'},
        {M:'ocjs',I:'js面向对象'},
        {M:'angular',I:'angular'}
    ];
})(angular);